//
//  MoveDemo.cpp
//  learnC++
//
//  Created by liuzhibing on 2018/6/28.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#include "MoveDemo.hpp"
// Return a copy of arr with all of the values doubled
DynamicArray<int> cloneArrayAndDouble(const DynamicArray<int> &arr)
{
    DynamicArray<int> dbl(arr.getLength());
    for (int i = 0; i < arr.getLength(); ++i)
        dbl[i] = arr[i] * 2;
    
    return dbl;
}
